from random import random

def hunt_choices(round_number, current_food, current_reputation, m,  player_reputations):
    # The variables passed in to hunt_choices are:
    #     round_number: integer, the number round you are in.
    #     current_food: integer, the amount of food you have.
    #     current_reputation: float (python's representation of real numbers), your current reputation.
    #     m: integer, the threshold cooperation/hunting value for this round.
    #     player_reputations: list of floats, the reputations of all the remaining players in the game.
    #                         The ordinal positions of players in this list will be randomized each round.

    # Pretty simple strategy, here. More likely to hunt with hunters, and 
	# slack with slackers. I'll call it "peer pressure". Long-term, 
	# this guy should have the same rep as the entire tribe does as a whole.
	# It's still random, of course, so somtimes he'll do the opposite of his
	# partner, but overall, he'll agree. Should just kinda coast, and benefit
	# mainly from the "bonus" given when m is low.
	hunt_decisions=['s' for i in player_reputations] # Default is slacking.
	for i,rep in enumerate(player_reputations): # for each other player
		if random()<rep: # if a random # is less than their rep,
			hunt_decisions[i]='h' # hunt, probably with them.
		
	
    

    return hunt_decisions;

def hunt_outcomes(food_earnings):
    pass

def round_end(award, m, number_hunters):
    pass